<template>
  <s-table ref="table" :dataSource="dataSource" :columns="columns" />
</template>
<script>
import Table from '@packages/layout/Table'
export default {
  name: 'SophiaConsoleAdminTable',
  components: {
    [Table.name]: Table
  },
  computed: {
    columns () {
      return [
        { title: this.$t('common.label.id'), dataIndex: 'id', customRender: this.renderEmpty },
        { title: this.$t('common.label.name'), dataIndex: 'name', customRender: this.renderEmpty },
        { title: this.$t('common.label.status'), dataIndex: 'status', customRender: this.renderEnable },
        { title: this.$t('common.label.action'), width: 120, fixed: 'right', dataIndex: 'action', scopedSlots: { customRender: 'action' } }
      ]
    }
  },
  data () {
    return {
      dataSource: []
    }
  },
  methods: {

  }
}
</script>
